package com.jdrx.sw.sewage.beans.dto;

import java.time.LocalDate;
import java.time.LocalDateTime;

import javax.validation.constraints.NotNull;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value = "修改水质化验报表参数", description = "修改水质化验报表参数")
@Data
public class WaterQualityTestUpdateDTO {
	@NotNull
	@ApiModelProperty(value = "id", required = true)
	private Long id;
	
	@ApiModelProperty(value = "化验日期yyyy-MM-dd")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE, pattern = "yyyy-MM-dd")
	private LocalDate testDate;
	
	@ApiModelProperty(value = "化验人员")
	private String tester;
	
	@ApiModelProperty(value = "文档链接")
	private String attach;
	
	@ApiModelProperty(value = "文档json")
	private String data;
	
	@ApiModelProperty(hidden = true)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime updateAt = LocalDateTime.now();
	
	@ApiModelProperty(hidden = true)
	private Long updateBy;
	
	@ApiModelProperty(value = "删除标记：0-未删除，1-已删除", hidden = true)
	private Integer deleteFlag;
}